package com.ftg.product.exam.vo;

import com.diboot.core.binding.annotation.*;
import com.ftg.product.exam.entity.SysRoleMenu;
import com.ftg.product.exam.entity.SysMenu;
import com.ftg.product.exam.entity.SysRole;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 角色菜单中间表 ListVO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class SysRoleMenuListVO extends SysRoleMenu  {
    private static final long serialVersionUID = 5405827110445208250L;

    /** 
    * 关联字段：SysMenu.mname
    */
    @BindField(entity = SysMenu.class, field = "mname", condition = "this.sys_id=id")
    private String sysMname;

    /** 
    * 关联字段：SysRole.rolename
    */
    @BindField(entity = SysRole.class, field = "rolename", condition = "this.roleid=id")
    private String roleidRolename;

}